import React, { Component } from 'react'

 class Detail extends Component {
  render() {
    console.log(this.props.location.state.item)
    return (
      <div>
          <span>{this.props.location.state.item.title}</span>
          <img src={this.props.location.state.item.img} alt="" />
      </div>
    )
  }
}

export default Detail